package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.entity.Orders;
import com.sky.result.Result;

import java.util.List;

public interface OrderService extends IService<Orders> {
    /**
     * 订单支付
     * @param
     * @return
     */
    boolean payment(String ordernum) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    //查询历史订单
    List<Orders> historybyuser();
}
